﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using WZVTC.SoftDev.DDDFW.EntityServices;
using WZVTC.SoftDev.DDDFW.Domain.Core;
using WZVTC.SoftDev.DDDFW.Domain.Specification;
using Repository;

namespace EntityServices
{
    public class 商品Services:BaseServices<商品>
    {
        public 商品Services(IUnitOfWork _context, 商品Repository _Repository) : base(_context, _Repository)
        { }
        public 商品 GetById(int id)
        {
            ISpecification<商品> sp = new DirectSpecification<商品>(x => x.Id == id);
            return base.GetByCondition(sp);
        }

    }
}
